package com.yunbo.crm.dao;

import com.yunbo.crm.base.BaseMapper;
import com.yunbo.crm.pojo.User;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface UserMapper extends BaseMapper<User, Integer> {

    /**
     * 通过用户名查询用户对象
     *
     * @param userName
     * @return
     */
    User queryUserByUserName(String userName);

    List<Map<String, Object>> queryAllSales();

}